﻿using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.CodeAnalysis.Elfie.Diagnostics;
using System.ComponentModel.DataAnnotations;

namespace WMS_MAV.DTO.Check
{
    public class CheckAddDto
    {
        public int CheckId { get; set; }
        /// <summary>
        /// 盘点单号
        /// </summary>
        public string? CheckNo { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? AssociateNumber { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? CheckMakeHe { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? CheckDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? CheckNotes { get; set; }
        /// <summary>
        /// 产品信息外键
        /// </summary>
        public int? ProductId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? AuditStatus { get; set; }
        /// <summary>
        /// 盘点类型
        /// </summary>
        public string? CheckType { get; set; }
        /// <summary>
        /// 公司ID
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int? user_id { get; set; }
        /// <summary>
        /// 审核原因
        /// </summary>
        public string? ExamineReason { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExaminePeople { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? ExamineTime { get; set; }
        public List<Statistics> StatisticsList { get; set; } = new List<Statistics>();
    }
    /// <summary>
    /// 盘点产品信息
    /// </summary>
    public class Statistics
    {
        public int StatisticsId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? ProductName { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        public string? ProductNo { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? ProductSpec { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string? StatisticsBatch { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? UnitId { get; set; }
        /// <summary>
        /// 库位
        /// </summary>
        public string? BinLocationName { get; set; }
        /// <summary>
        /// 公司ID
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户ID
        /// </summary>
        public int? user_id { get; set; }
        /// <summary>
        /// 盘点数
        /// </summary>
        public int? StatisticsSum { get; set; }
        /// <summary>
        /// 盘点ID
        /// </summary>
        public int? CheckId { get; set; }
    }
}
